package com.yang.springboot.web;

import com.yang.springboot.web.service.IPlayerService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author yanwei.yang
 * @date 2021/11/15 17:52
 * @description:
 */
@Controller
public class PlayerController {

    @Resource
    private IPlayerService playerService;


    @ResponseBody
    @RequestMapping("player")
    public Object player(Integer id) {
        return playerService.getById(id);
    }
}
